﻿#pragma once

#include <QThread>

class SerialThread : public QThread
{
	Q_OBJECT

public:
	explicit SerialThread(QObject *parent, QString m_PortName, int m_BaudRateIndex, int m_ParityIndex, int m_DataBitsIndex, int m_StopBitsIndex);
	~SerialThread();
protected:
	void run() override;
private:
	QString m_PortName;
	int m_BaudRateIndex;
	int m_ParityIndex;
	int m_DataBitsIndex;
	int m_StopBitsIndex;
};
